package com.bestcem.xm.member.grpc.service.param.member;

import com.bestcem.xm.common.core.constant.RegTypes;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 批量删除联系人 参数校验
 *
 * @author yf.wang <yf.wang@idiaoyan.com>
 * @version V1.0
 * @date 2021/8/13
 */
@Getter
@Setter
public class DeleteMembersParam {

    @Size(min = 1, message = "联系人id列表不能为空")
    private List<@Pattern(regexp = RegTypes.OBJECT_ID, message = "联系人id格式错误") String> ids;
}
